//
//  ViewController.m
//  28-LaGou
//
//  Created by Snow on 16/8/22.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "ViewController.h"
#import "UIView+Frame.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *myimage;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _myimage.transform = CGAffineTransformMakeTranslation(0, -300);
    _imageOfBack.transform = CGAffineTransformMakeTranslation(0, 0);
}
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    _widthOfLogin0.priority = 749;
    _widthOfLogin1.priority = 750;
    // 执行动画
    [UIView animateWithDuration:5 animations:^{
        [_buttonOfLogin layoutIfNeeded];
        _myimage.transform = CGAffineTransformIdentity;
        _imageOfBack.transform = CGAffineTransformIdentity;
    }];
    _width.constant = 46;
    _widthOftext.constant = 300;
    _widthOfRightLine.constant = 150;
    _widthOfLeftLine.constant = 150;
    [UIView animateWithDuration:5 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
        [self.view layoutIfNeeded];
    } completion:^(BOOL finished) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
